草庐IT

安卓 gradle : buildtoolsVersion vs compileSdkVersion

全部标签

android - Gradle 项目同步在 Android Studio 3.0.1 上失败

我是第一次在我的笔记本电脑上安装AndroidStudio3.0.1,但我无法创建我的第一个HelloWorld应用。我收到以下错误:Createprocessfailed,error=216Error:ConsultyourIDElogformoredetails可以在thisscreenshot上看到错误. 最佳答案 转到文件->项目结构,取消选中“使用嵌入式JDK”并选择32位JDK。 关于android-Gradle项目同步在AndroidStudio3.0.1上失败,我们在St

java - 安卓工作室 : Can't find the emulator executable

无法在模拟器上运行任何应用程序。当我点击run-app时,它会立即显示通知ERROR:can'tfindtheemulatorexecutable和processfinishedwithcode-1. 最佳答案 我有同样的问题,我的防病毒软件(AVG)删除了路径中模拟器的exe:C:\ProgramFiles(x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-i386.exe如果问题出在您的防病毒软件上,您可以按照以下步骤操作:打开杀毒软件进入隔离区恢

安卓。粘贴文本时从 EditText 中删除 HTML

也许这是一个非常简单的问题,但我绝对不明白该怎么做。当我从网站复制文本并将其粘贴到EditText中时,我在EditText中得到HTML格式,如何避免这种情况?我的编辑文本 最佳答案 将TextChangeListener添加到您的编辑TextViewyourEditTextView.addTextChangedListener(newTextWatcher(){@OverridepublicvoidbeforeTextChanged(CharSequencecharSequence,inti,inti1,inti2){}@Ove

Android Gradle 插件从 3.1.4 更新到 3.2.0 导致 TaskExecutionException

当我将gradle插件从3.1.4升级到3.2.0时,我遇到了以下错误。我做了什么:取消选中即时运行添加到local.propertiesorg.gradle.jvmargs=-Xmx2048m-XX:MaxPermSize=512mXX:+HeapDumpOnOutOfMemoryError-Dfile.encoding=UTF-8失效并重启清理并构建项目没有变化...错误:buildfailed32s17ms...:app:transformClassesWithDexBuilderForAndroid50SncfDebugExecutetransformorg.gradle.ap

android - 使用 teamcity 使用 gradle 构建 android 项目时出错

使用teamcity构建和android应用程序。不断收到错误。[16:59:38][Step1/1]Executionfailedfortask':app:mergeDebugResources'.org.gradle.internal.UncheckedException:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception:AndroidresourcecompilationfailedOutput:C:\Windows\System32\config

安卓改造 : Display in Recyclerview

我对如何将我的json数据显示到回收站View有疑问。这是我想在回收站View中显示“错误”的JSON数据。我尝试了一些方法,但它总是强制关闭。{"result":true,"errors":[{"id":"e1812696024","offset":2,"length":2,"bad":"is","better":["am"],"type":"grammar"},{"id":"e962925648","offset":8,"length":8,"bad":"engeneer","better":["engineer","engender"],"type":"spelling"}]}这

安卓工作室 : UnsupportedOperationException: Operation is not supported > for read-only collection

我使用的是AndroidStudio3.3.2每次我打开我的项目时,都会出现一条消息:由于批量更新,索引暂停。IDE捕获了一个错误:java.lang.UnsupportedOperationException:Operationisnotsupportedforread-onlycollectionatkotlin.collections.EmptyList.add(Collections.kt)atcom.android.tools.idea.gradle.run.MakeBeforeRunTaskProviderUtil.addBeforeRunTaskToConfig(Make

Android Failed to invoke getAdditionalVisibleSourceSets on org.jetbrains.kotlin.gradle.plugin.source

一、错误内容[ReflectionError]FailedtoinvokegetAdditionalVisibleSourceSetsonorg.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSetjava.lang.NoSuchMethodException:org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet.getAdditionalVisibleSourceSets() atjava.base/java.lang.Class.getMeth

java - 如何在安卓中打开gmail

我只是想通过我的应用程序打开Gmail应用程序,并想通过我的应用程序设置电子邮件、主题和消息。我试过GmailService,但它不支持密件抄送或抄送电子邮件。链接:https://github.com/yesidlazaro/GmailBackgroundBackgroundMail.newBuilder(this).withUsername("username@gmail.com").withPassword("password12345").withMailto("toemail@gmail.com").withType(BackgroundMail.TYPE_PLAIN).wi

安卓导航组件 : how save fragment state

我使用bottomNavigationView和导航组件。请告诉我如何在切换到另一个选项卡并返回到旧选项卡后不破坏fragment?例如,我有三个选项卡-A、B、C。我的起始选项卡是A。导航到B后,然后返回A。当我返回到选项卡A时,我不希望重新创建它。怎么做?谢谢 最佳答案 根据openissue,Navigation不直接支持多个返回堆栈-即,当您从A或C返回B时保存堆栈B的状态,因为Fragments不支持多个返回堆栈。根据thiscomment:TheNavigationAdvancedSampleisnowavailable